/*
 * @Autor: fhx
 * @Date: 2021-06-15
 * @LastEditors: dingxiaolin
 * @LastEditTime: 2021-07-23 09:43:18
 */
import http from '@/utils/http/axios'
import qs from 'qs'
import { Base64 } from 'js-base64'
import { type } from './interface'
import setting from '@/config/defaultSettings'
const { clientId, clientSecret } = setting



/**
 * 查询系统职位
 */
export function sysPosPage(params) {
    return http.request<any>({
        url: '/app-admin/pos/page',
        method: 'GET',
        params
    })
}

/**
 * 系统职位列表
 */
export function sysPosList(params) {
    return http.request<any>({
        url: '/app-admin/pos/list',
        method: 'GET',
        params
    })
}

/**
 * 新增职位
 */
export function sysPosAdd(params) {
    return http.request<any>({
        url: '/app-admin/pos/add',
        method: 'POST',
        params
    })
}

/**
 * 编辑职位
 */
export function sysPosEdit(params) {
    return http.request<any>({
        url: '/app-admin/pos/edit',
        method: 'POST',
        params
    })
}

/**
 * 删除机构
 */
export function sysPosDelete(params) {
    return http.request<any>({
        url: '/app-admin/pos/delete',
        method: 'POST',
        params
    })
}
